#pragma once
#include<vector>
#include<String>
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
#include "global.h"
#include "Pattern.h"
using namespace std;

class GroupPtrns
{
public:
	GroupPtrns(void);
	~GroupPtrns(void);
	CvRect getROI() const;
	void setROI(CvRect cr);
	void setlightOffImg(	IplImage *offImg);
	IplImage * getlightOffImg();
	void addPtrn(Pattern *ptrn);
	void detectPtrns();
private:
	vector<Pattern*> ptrns;
	CvRect ROI ;
	IplImage *lightOffImg;
};
